package com.dayuan.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dayuan.bean.UserInfo;
import com.dayuan.dao.UserInfoMapper;

@Service
public class UserInfoService {

	@Resource(name = "userInfoMapper")
	UserInfoMapper uif;

	public void insertUser(UserInfo ui) throws Exception {
		try {
			uif.insertUserInfo(ui);
		} catch (Exception e) {
			throw new Exception("导入数据失败" + e.getMessage());
		}
	}

	public UserInfo selectUser(UserInfo ui) {
		return uif.selectUserInfo(ui);
	}
}
